#include <iostream>
#include <string>
using namespace std;

class Base1 {
public:
    int A;
    int B;
    Base1() {
        A = 100;
        B = 500;
    }
};

class Base2 {
public:
    int A;
    int B;
    Base2() {
        B = 200;
        A = 600;
    }
};

class Son:public Base1,public Base2 {
public:
    int C;
    int D;
    Son() {
        C = 300;
        D = 400;
    }
};

int main() {
    Son son;

    cout<<son.Base1::A<<endl;
    cout<<son.Base2::A<<endl;

//    cout<< sizeof(son)<<endl;
//    cout<<son.A<<endl;
//    cout<< sizeof(Base1)<<endl;
    return 0;
}